<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="./../template/template.xhtml">
	<ui:define name="content">
		<div class="FORM_HEADER">Company List</div>
		<br></br>
		<h:form styleClass="APPLICATION_CONTENT">
			<h:dataTable value="${companyController.companyList}" var="company"
				styleClass="TABLE_BASIC_COMPOSITION" headerClass="TABLE_HEADER"
				rowClasses="ODD_ROW, EVEN_ROW" cellpadding="8">
				<p:column>
					<f:facet name="header">Id</f:facet>
					<h:outputText value="#{company.companyId}" />
				</p:column>
				<p:column>
					<f:facet name="header">Name</f:facet>
					<h:outputText value="#{company.name}" />
				</p:column>
				<p:column>
					<f:facet name="header">Website</f:facet>
					<h:outputText value="#{company.website}" />
				</p:column>
				<p:column>
					<f:facet name="header">Email</f:facet>
					<h:outputText value="#{company.email}" />
				</p:column>
				<p:column>
					<f:facet name="header">Action</f:facet>
					<h:commandLink value="View" action="#{companyController.view}">
						<f:param name="companyId" value="#{company.companyId}" />
					</h:commandLink>
					<h:outputText value=" " />
					<h:commandLink value="Edit" action="#{companyController.edit}">
						<f:param name="companyId" value="#{company.companyId}" />
					</h:commandLink>
				</p:column>
			</h:dataTable>
		</h:form>
	</ui:define>
</ui:composition>
</html>